<%@ page import="com.apexedu.identity.entity.TSysMenu" %>
<%@ page import="java.util.List" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%
    List<TSysMenu> mrfw = (List<TSysMenu>) request.getAttribute("mrfw");
%>
<html>
<head>
    <title>上海工会管理职业学院</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
</head>
<body>

<div id="main">
    <jsp:include page="head.jsp"/>
    <script>
        $(function(){
            var no = '${no}';
            $(".titleLi:eq("+no+")").addClass("select");
        })
    </script>
    <div id="content">
        <div id="contentSub" style="height: 100px;padding-bottom: 210px;">
            <div id="dyfw">
                <% for (int i = 0; i < mrfw.size(); i++) {
                    TSysMenu menu = mrfw.get(i);
                %>
                <div class="server" menuid="<%=menu.getMenuid()%>" name="<%=menu.getMenuname()%>"
                     pmenuid="000603298" pmenuname="<%=menu.getMenuname()%>" filetype="normal"
                     style="<%if (i > 5) {%>display:none;<%}%>">
                    <div class="servericon" style="background-color: <%=menu.getBgcolor()%>;"
                         onclick="window.open('<%=menu.getMenupath()%>')"><img
                            src="${basePath}/resources/images/icons/<%=menu.getTb()%>"
                            onerror="this.src='${basePath}/resources/images/icons/icons-01.png'">
                    </div>
                    <div class="servertitle" title="<%=menu.getMenuname()%>"> <!-- 服务ID -->
                        <a
                                href="<%=menu.getMenupath()%>" target="_blank"><%=menu.getMenuname()%>
                        </a></div>
                </div>
                <%}%>
                <div class="server serverAdd" style="width: 125px;margin-left: 20px;">
                    <div class="moreserver">更多</div>
                    <div class="addserver" onclick="window.open('${basePath}/s/uc/se/i/${mrfwid}')">订阅</div>
                </div>
            </div>
            <div class="rightMore" id="serverContent">
                <div class="tRDiv">
                    <span class="tRSpan">已订阅服务</span>
                    <span class="cRSpan closeSpan">关闭</span>
                </div>
                <div class="cRDiv">
                </div>
            </div>
        </div>
        <div id="contentBg"></div>
    </div>
    <jsp:include page="foot.jsp"/>
</div>
</body>
</html>
